package com.fz.mapper;

import com.fz.entity.Carousel;
import com.fz.entity.Product;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Z-C-Y on 2018-03-04.
 * 首页
 */
@Service
public interface WebIndexMapper {
    /*查询首页的轮播图*/
    public List<Carousel> queryCarousel();
    /*向页面展示数据据中的----油画*/
    @Select("select * from product where art_type = #{stu}")
    public List<Product>  indexYouHua(String stu);
    /*向页面展示数据据中的----国画*/
    public List<Product> indexGuoHua(String stu);
    /*向页面展示数据据中的----书法*/
    public List<Product> indexShuFa(String stu);
}
